package com.lbw.proxy.dynamicproxy;


import com.lbw.proxy.staticproxy.ITeacherDao;

/**
 * @author lbw
 * @version 1.0
 * @date 2021/6/13 14:50
 */
public class Client {
    public static void main(String[] args) {
        // 被代理对象
        ITeacherDao iTeacherDao = new TeacherDao();

        ITeacherDao proxyInstance = (ITeacherDao) new ProxyFactory(iTeacherDao).getProxyInstance();


        proxyInstance.teach();
    }
}
